import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { knowledge, system, aiqa } from '@/api/apiModulesType';

// 获取部门文件夹
export const apiSysPortalConfigure = (query?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/api/sysPortalConfigure/get-all-portal`,
        method: 'get',
        params: query
    });
};

// 部门文件夹详情
export const apiSysPortalConfigureGetportalFile = (id?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/api/sysPortalConfigure/get-portal-file/${id}`,
        method: 'get',
    });
};

// 搜索
export const apiSearchFilesInfo = (data?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/api/search/files/info`,
        method: 'get',
        params: data
    });
};

// 企业消息公告
export const apiMessageGetMessageByUser = (query?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/message/getMessageByUser`,
        method: 'get',
        params: query
    });
};